/*
 * Touch.cpp
 *
 *  Created on: 2011/12/18
 *      Author: naoki
 */

#include "NTEngine/NTEngine.h"
#include "NTEngine/Core/Core.h"
#include "Input/src/ManagerImpl.h"
#include "NTEngine/Input/Touch.h"

namespace NTEngine {
namespace Input {

float Touch::x( int pid ) const {
	return gManagerImpl->getMotionEventX( pid );
}

float Touch::y( int pid ) const {
	return gManagerImpl->getMotionEventY( pid );
}

float Touch::size( int pid ) const {
	return gManagerImpl->getMotionEventSize( pid );
}

bool Touch::isOn( int pid ) const {
	return gManagerImpl->isMotionEventOn( pid );
}

bool Touch::isTriggered( int pid ) const {
	return gManagerImpl->isMotionEventTriggered( pid );
}

bool Touch::isTapped() const {
	return gManagerImpl->isTapped();
}

int Touch::tappedPointer() const {
	return gManagerImpl->getTappedPointer();
}

float Touch::startX( int pid ) const {
	return gManagerImpl->getMotionEventStartX( pid );
}

float Touch::startY( int pid ) const {
	return gManagerImpl->getMotionEventStartY( pid );
}

float Touch::distanceX( int pid ) const {
	return gManagerImpl->getMotionEventDistanceX( pid );
}

float Touch::distanceY( int pid ) const {
	return gManagerImpl->getMotionEventDistanceY( pid );
}

} // namespace Input
} // namespace NTEngine
